-- GENERATED SPELL FOR [Aspect of Banality] --


function spell0_14518(pUnit, Event) --@Befuddlement,n/a--
pUnit:FullCastSpellOnTarget(8140,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_14518', 15282, 1)
end

function spell1_14518(pUnit, Event) --@Curse of Thorns,n/a--
pUnit:FullCastSpellOnTarget(16247,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_14518', 2000, 1)
end

function spell2_14518(pUnit, Event) --@Demoralizing Shout,Self--
pUnit:FullCastSpellOnTarget(16244,pUnit)
pUnit:RegisterEvent('Sorts_14518', 30287, 1)
end

function Sorts_14518(pUnit, Event)
local choix_sorts_14518 = math.random(0, 2)
if choix_sorts_14518 == 0 then
pUnit:RegisterEvent('spell0_14518', 1, 1)
end
if choix_sorts_14518 == 1 then
pUnit:RegisterEvent('spell1_14518', 1, 1)
end
if choix_sorts_14518 == 2 then
pUnit:RegisterEvent('spell2_14518', 1, 1)
end
end

function mob14518_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_14518', math.random(1500, 3000), 1)
end

function mob14518_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob14518_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob14518_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(14518, 1, 'mob14518_Action')
RegisterUnitEvent(14518, 2, 'mob14518_Leave')
RegisterUnitEvent(14518, 3, 'mob14518_Kill')
RegisterUnitEvent(14518, 4, 'mob14518_Die')
